<?php
require_once(dirname(__FILE__)."../../users/config.php");
require_once("kill.php");
session_start();
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
if(!defined('wwwew023com'))
{
ShowMsg("引入文件错误",'-1');
exit();
	
}
if($aid=='0')
{
ShowMsg("参数错误,酒店不存在",'-1');
exit();
}


$row=$dsql->getone("select arc.*,tp.title,tp.id from `#@__hotel` arc left join `#@__archives` tp on arc.aid=tp.id where arc.aid='$aid'");
if(!$row)
{
ShowMsg("参数错误,酒店不存在",'-1');
exit();
}

$coo=explode('~',$row['fx']);
$cou=count($coo);
$arc='arc';
$okfx=array();
for($i=0;$i<$cou-1;$i++)
{
$arc='arc'.$i;

if($$arc<>'') // 如果选中
{   $$arc++;
	
	array_push($okfx,"~".$coo[$$arc]);  //说明
	$$arc='';
}

}

$time=time();
$timee=$time+86400;
$date=MyDate('Y-m-d',$time);
$datee=MyDate('Y-m-d',$timee);





$myname  = $cfg_ml->M_name;
$mymb  =  $cfg_ml->M_LoginID;
$mytel  =  $cfg_ml->M_tell;
$mymail  =  $cfg_ml->M_mail;

$countfx=count($okfx);

//$sql = "select * from #@__hotel where aid='$aid'";
//$dsql->SetQuery($sql);
//$dsql->Execute();
//$row = $dsql->GetArray();
$_SESSION['188yudingid']='gogo';
$dpl = new DedeTemplate();
$tpl =$cfg_basedir.$cfg_templets_dir.'/default/188_order_hotel.htm';
$dpl->LoadTemplate($tpl);
$dpl->display();
?>